package com.ossjk.oa.system.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.IService;
import com.ossjk.oa.system.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 部门表 服务类
 * </p>
 *
 * @author chair
 * @since 2019-01-30
 */
public interface IDepartmentService extends IService<Department> {

	/**
	 * 根据员工ID
	 * 
	 * @param eid
	 * @return
	 */
	Department selectByEid(String eid);
	List<Map<String, String>> selectVo( );
	/**
	 * 根据父id拿到子部门
	 * 
	 * @param pid
	 * @return
	 */
	List<Department> selectSubByPid(String pid);

	/**
	 * 根据父id拿到子部门id
	 * 
	 * @param pid
	 * @return
	 */
	List<String> selectSubIdByPid(String pid);


	List<Department>  selectAllDept(@Param("ew")Wrapper wrapper);

	List<Department> selectName(Wrapper wrapper);
}
